#!/usr/bin/env python
# -*- coding: utf-8 -*-
# title       :
# author      : jarry

import sys
import os
import logging
from SceneCheckTool.checkScript.CheckBase import CheckBase

try:
    import maya.cmds as cmds
    # import pymel.core as pm
    import JTK.jmaya.core as jmc

except:
    pass
# import jarryLibs.mayakit.MayaUtils as mu
# reload(mu)

logging.basicConfig()
log = logging.getLogger(__name__)
log.setLevel(logging.DEBUG)


class DoubleName(CheckBase):
    def __init__(self):
        super(DoubleName, self).__init__()
        pass

    def check(self):
        double_node = jmc.check_double_name()

        if double_node:
            result_log = u'Error:%s\n' % double_node
        else:
            result_log = u'Succeed:没有问题\n'
        return result_log
    
    def fix(self):
        pass


def run():
    cmd = DoubleName()
    return cmd.check()
